package com.zeekr.springbootredis.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description:
 * @author: e-Yuanping.Yang1
 * @time: 2024/6/19 14:11
 */


@Data
public class UserDTO implements Serializable {
    private static final long serialVersionUID = -4120891669208777624L;
    @NotNull(message = "ID为空")
    private Long id;
    @NotBlank(message = "姓名为空")
    private String name;
    private Integer age;
    private String address;
}
